// ==========================================================================
// 云捷GO自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// 生成日期：2021-08-17 14:40:38
// 生成路径: app/controller/module/attachment_router.go
// 生成人：gfcms
// ==========================================================================
package module

import (
	"myblog/app/controller/module/attachment"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
)

//加载路由
func init() {
	g1 := router.New("admin", "/module/attachment", auth.Auth)
	g1.GET("/", "module:attachment:view", attachment.List)
	g1.POST("/list", "module:attachment:list", attachment.ListAjax)
	g1.GET("/add", "module:attachment:add", attachment.Add)
	g1.POST("/add", "module:attachment:add", attachment.AddSave)
	g1.POST("/remove", "module:attachment:remove", attachment.Remove)
	g1.GET("/edit", "module:attachment:edit", attachment.Edit)
	g1.POST("/edit", "module:attachment:edit", attachment.EditSave)
	g1.POST("/export", "module:attachment:export", attachment.Export)
}
